package com.huashi.dealer.commonEntity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 地区实体类
 * 对应数据库表：yoshop_region
 */
@Getter
@Setter
@TableName("yoshop_region")
@Schema(description = "地区实体")
public class Region {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "ID")
    private Integer id;

    @TableField("pid")
    @Schema(description = "父id")
    private Integer pid;

    @TableField("shortname")
    @Schema(description = "简称")
    private String shortname;

    @TableField("name")
    @Schema(description = "名称")
    private String name;

    @TableField("merger_name")
    @Schema(description = "全称")
    private String mergerName;

    @TableField("level")
    @Schema(description = "层级：1省份，2城市，3区县")
    private Integer level;

    @TableField("pinyin")
    @Schema(description = "拼音")
    private String pinyin;

    @TableField("code")
    @Schema(description = "长途区号")
    private String code;

    @TableField("zip_code")
    @Schema(description = "邮编")
    private String zipCode;

    @TableField("first")
    @Schema(description = "首字母")
    private String first;

    @TableField("lng")
    @Schema(description = "经度")
    private String lng;

    @TableField("lat")
    @Schema(description = "纬度")
    private String lat;
} 